package com.mhh.selary.backend.dao.entity.api;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mhh.motor.mybatis.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * SelaryApiHttpEntity
 *
 * @author 人工智能
 * @date 2020-09-14 15:43:19
 */
@Getter
@Setter
@TableName(value = "selary_api_http")
public class SelaryApiHttpEntity extends BaseEntity {

    /**
     * 分组id
     **/
    @TableField(value = "group_id")
    private Long groupId;

    /**
     * 接口名称
     **/
    @TableField(value = "api_name")
    private String apiName;

    /**
     * 协议类型(http:1, https:2)
     **/
    @TableField(value = "protocol")
    private Integer protocol;

    /**
     * 方法类型(GET:1, POST:2, PUT:3, PATCH:4, DELETE:5)
     **/
    @TableField(value = "method")
    private Integer method;

    /**
     * 接口url
     **/
    @TableField(value = "api_url")
    private String apiUrl;

    /**
     * 请求类型(params:1, x-www-form-urlencoded:2, application/json:31, text/plain:41, form-data:5)
     **/
    @TableField(value = "request_type")
    private Integer requestType;

    /**
     * 请求体的内容
     **/
    @TableField(value = "request_body")
    private String requestBody;
}
